From: Georges Basile Stavracas Neto Date: Tue, 11 Feb 2020 15:03:07 +0000 (-0300) Subject: authPrompt: Don't hide the caps lock warning label X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~63 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9f5f6aa9b2c8f5f055a3c3b6ff2270a79c1b5e69;p=gnome-shell.git authPrompt: Don't hide the caps lock warning label Hiding the Caps lock warning label changes the layout of Auth Prompt. This is specially noticeable when logging in with unlisted users, where we change the visibility of this label after typing a username, and the whole user widget moves a bit. Change the Cap lock label's opacity instead of hiding it. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 5b6966eb5..df8767b82 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -200,7 +200,7 @@ var AuthPrompt = GObject.registerClass({ this._mainBox.replace_child(this._entry, this._textEntry); this._entry = this._textEntry; } - this._capsLockWarningLabel.visible = secret; + this._capsLockWarningLabel.opacity = secret ? 0 : 255; } _onAskQuestion(verifier, serviceName, question, secret) {